]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dash: Take remove target into account for icon size
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 16 Dec 2010 21:13:47 +0000 (22:13 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 9 Feb 2011 20:36:55 +0000 (21:36 +0100)
Previously the icon size was only adjusted due to changes in the list
of application icons displayed, not when showing or hiding the remove
target. As a result, the remove target could end up cut off, so take
this case into account and adjust the icon size when showing or hiding
the remove target.

https://bugzilla.gnome.org/show_bug.cgi?id=636156

js/ui/dash.js

index 98133726c9549f48b54a255828e1e1145ca24c75..8b419e9aa4a7ea20539ad05cc3ebe91fbd49d8e1 100644 (file)
@@ -140,6 +140,7 @@ Dash.prototype = {
         this._clearDragPlaceholder();
         if (this._favRemoveTarget) {
             this._favRemoveTarget.actor.destroy();
+            this._adjustIconSize();
             this._favRemoveTarget = null;
         }
         DND.removeMonitor(this._dragMonitor);
@@ -164,6 +165,7 @@ Dash.prototype = {
                 this._favRemoveTarget = new RemoveFavoriteIcon();
                 this._favRemoveTarget.icon.setIconSize(this._iconSize);
                 this._box.add(this._favRemoveTarget.actor);
+                this._adjustIconSize();
         }
 
         let favRemoveHovered = false;